package org.streets.eis.pages;

import org.streets.eis.component.modal.ModalDialog;

/**
 * 
 * 若不需要返回值 可使用避免java编译器警告：
 * 
 * 		ModalPage<Void> page = new ModalPage<Void>(dialog); 
 *
 * @param <T>
 */
public class ModalPage<T> extends BasePage{

	private T modalResult ;
	
	private ModalDialog dialog;

	public ModalDialog getDialog() {
		return dialog;
	}

	public ModalPage<T> setDialog(ModalDialog dialog) {
		this.dialog = dialog;
		return this;
	}

	public ModalPage(ModalDialog dialog){
		this.dialog = dialog;
	}
		
	public ModalPage<T> setModalResult(T modalResult) {
		this.modalResult = modalResult;
		return this;
	}

	public T getModalResult() {
		return modalResult;
	}
	
}
